package com.lwj.liwanjia.adapter;

import android.content.Context;

import com.lwj.liwanjia.R;
import com.lwj.liwanjia.bean.LitepalBean;
import com.superrecycleview.superlibrary.adapter.BaseViewHolder;
import com.superrecycleview.superlibrary.adapter.SuperBaseAdapter;

import java.util.List;

/**
 * 搜索历史
 */

public class HistorySearchAdapter extends SuperBaseAdapter<LitepalBean> {

    public HistorySearchAdapter(Context context, List<LitepalBean> data) {
        super(context, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, LitepalBean item, int position) {
        holder.setText(R.id.tv_history, item.getHistoryName());
    }

    @Override
    protected int getItemViewLayoutId(int position, LitepalBean item) {
        return R.layout.history_search_item;
    }
}
